afe195643aed18b669104203c0fa0df63d6c2198,store-implementation/accumulo-store/src/main/java/uk/gov/gchq/gaffer/accumulostore/key/impl/ValidatorFilter.java,ValidatorFilter,getElementValidator,#Map#,52
Before Change
}
try {
return new ElementValidator(new Schema.Builder().json(options.get(AccumuloStoreConstants.SCHEMA).getBytes(CommonConstants.UTF_8)).build(), false);
} catch (UnsupportedEncodingException e) {
throw new SchemaException("Unable to deserialise schema from JSON", e);
}
After Change
}
try {
return new ElementValidator(Schema.fromJson(options.get(AccumuloStoreConstants.SCHEMA).getBytes(CommonConstants.UTF_8)), false);
} catch (UnsupportedEncodingException e) {
throw new SchemaException("Unable to deserialise schema from JSON", e);
}